package ooday02exercise;

public class Dog extends Animal implements Swim{
    Dog(){}
    Dog(String name,int age,String color){
        super(name, age, color);

    }
    void lookHome(){
        System.out.println(color+"色的"+age+"岁的狗"+name+"现在能看家了！！！");
    }

    void eat(){
        System.out.println(color+"色的"+age+"岁的狗"+name+"想要吃粑粑！！！");
    }
    public void swim(){
        System.out.println(color+"色的"+age+"岁的"+name+"想要喝水！！！");
    }
}
